<?php
class Files{
	function Files(){
		include("files.methodTable.php");
		include("database.php");
	}
	function getFiles($projectId){
		if (isset($projectId)) $WHERE = " WHERE file.projectId={$projectId}";
		$sql = "SELECT * FROM file INNER JOIN filetype ON file.filetypeId = filetype.filetypeId $WHERE";
		$query = mysql_query($sql);
		return $query;
	}
}
?>